package com.charlotte.study.gupao.singleton;

import com.charlotte.study.gupao.singleton.register.ContainerSingletonDemo;

/**
 * @author junjie.ding
 * @date 2020/2/27
 */
public class ContainerThread implements Runnable {

    public void run() {
        try {
            Object instance = ContainerSingletonDemo.getInstance("com.charlotte.study.gupao.singleton.ClassForContainer");
            System.out.println(instance);
        } catch (ClassNotFoundException e) {
            e.printStackTrace();
        } catch (IllegalAccessException e) {
            e.printStackTrace();
        } catch (InstantiationException e) {
            e.printStackTrace();
        }
    }
}
